package acwing.算法题;
import java.util.*;
public class 队列 {
    public static void main(String[] args) {
            Queue<Integer> q = new LinkedList<>();

            q.offer(7);
            q.offer(8);
            q.offer(9);
            Integer[] a = new Integer[10];
            while(!q.isEmpty())
        System.out.println(q.peek());
            q.toArray(a);
        System.out.println(Arrays.toString(a));

    }

}
